package org.eclipse.football;

import static org.junit.Assert.*;

import org.junit.Test;

public class BlankTeamName {

	@Test
	public void test() {
		// Instantiate a league
		League league = new League("does_not_exist.txt");
		
		// Instantiate a team with a blank name
		Team team = new Team("","");
		
		// Get old number of teams in league
		int old_num_teams = league.getTeams().size();
		
		// Try to add team to league
		league.addTeam(team);
		
		// Make sure number of teams in league has not changed
		if(league.getTeams().size() != old_num_teams){
			// If not then fail
			fail("League allowed addition of team with a blank team name\n");
		}
	}

}
